package com.gusto.engine.semsim.measures.impl;

import com.gusto.engine.semsim.exceptions.SimilarityException;
import com.gusto.engine.semsim.measures.ValueSimilarity;

/**
 * <p>Soundex implementation (Not available yet).</p>
 * 
 * @author amokrane.belloui@gmail.com
 *
 */
public class SoundexSimilarity implements ValueSimilarity {
	
	//private Logger log = Logger.getLogger(getClass());
	
	public String getId() {
		String id = "[" + getClass().getName() + "]";
		return id;
	}
	
	public Double getSimilarity(Object value1, Object value2) throws SimilarityException {
		String string1 = (String)value1;
		String string2 = (String)value2;
		
		if (soundex(string1).equals(soundex(string2))) {
			return 1.0;
		}
		else {
			return 0.0;
		}
	}
	
	
	private String soundex(String string) {
		return "";
	}
}
